package com.lishui.waterfriend.controller;

import com.lishui.waterfriend.common.result.Result;
import com.lishui.waterfriend.pojo.vo.TagVO;
import com.lishui.waterfriend.service.TagService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("/tag")
@Api(tags = "标签相关接口")
@Slf4j
public class TagController {
    @Resource
    private TagService tagService;

    @GetMapping("/getTagVOS")
    @ApiOperation("获取标签VO列表")
    public Result<List<TagVO>> getTagVOS() {
        return Result.success(tagService.getTagVOS());
    }
}
